package com.biubiux2.codec.compress;

import org.xerial.snappy.Snappy;

import java.io.IOException;

/**
 * @author noexcs
 * @since 8/10/2022 1:25 PM
 */
public class CompressUtil {

    public static byte[] compress(byte[] bytes) throws IOException {
        return Snappy.compress(bytes);
    }

    public static byte[] decompress(byte[] bytes) throws IOException {
        return Snappy.uncompress(bytes);
    }
}
